﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TrackingAssist.WebTrends
{
    public class WebTrendsConsts
    {
        //atlas tracking domain
        public const string WEBTRENDS_DOMAIN = "m.webtrends.com/";

        //atlas spec format
        public const string SPEC_FLAG_SHEETNAME = "WebTrends";
        public const string SPEC_FLAG_SKIP = "[skip]";
        public const string SPEC_FLAG_EMPTY = "0";
        public const string SPEC_FLAG_DYMATIC = "[d]";
        public const int    SPEC_DESCRIPTION_COLUMN_NUMBER = 2;
        public const int    SPEC_VALUE_COLUMN_NUMBER = 1;
        public const string SPEC_ID_Column = "A";
        public const string SPEC_Result_Column = "Q";

        //Mail
        public const string MAIL_TITLE = "Tracking Test Result : {0}";
        public const string MAIN_BODY = "WebTrends tracking result for project {0} is enclosed";
        public const string SMTP_SERVER = "smtphost.dns.microsoft.com";

        //Match Result:
        public const string Result_Match = "Pass";
        public const string Result_NotMatch = "Fail";
        public const string Result_Miss = "Miss";
        public const string Result_Unknown = "Unknown";

        
        //Regular expressions
        public const string Reg_Str = "^[A-Za-z]+$";          //only chars
        public const string Reg_Num = "^[0-9]*$";             //only number
        public const string Reg_Str_Num = @"^\w+$";           //chars,number,"_"
        //public const string Reg_Str_Num = "^[a-zA-Z0-9-_$#*()'!]+$";
        public const string Reg_Url = @"http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?";  //url
        //encode
        public const string Reg_encode = "^[%&',;=?$\x22]+";          
        


    }
}